package com.example.UserConsumer.RestController;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.example.UserConsumer.Entity.User;
@Component
//@FeignClient(name = "UserServerRegistry",fallbackFactory = UserServerRegistryHystrixtFallbackFactory.class)
@FeignClient(name = "UserServerRegistry",fallback = UserServerRegistryHystrixtFallback.class)
public interface UserFeignClient {


	@RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
	public User FindUserById(@PathVariable("id") String id);
}
